#include "chui.h"
#include "ui_chui.h"

chui::chui(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::chui)
{
    ui->setupUi(this);
    connect(ui->chui_offButton,&QPushButton::clicked,this,&chui::close);
}
void chui::setindex(int index){
    ui->label->setText(QString("碳汇%1 CO2排放量：").arg(index));
    ui->label_2->setText(QString("碳汇%1 经度：").arg(index));
    ui->label_3->setText(QString("碳汇%1 纬度：").arg(index));
}
chui::~chui()
{
    delete ui;
}
